package com.yunxin.core.wechat.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunxin.core.customer.dto.CustomerWechatPageDto;
import com.yunxin.core.customer.vo.CustomerWechatInfoVo;
import com.yunxin.core.wechat.domain.WechatFollowCustomer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunxin.core.wechat.domain.WechatUserSys;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* @author Administrator
* @description 针对表【wechat_follow_customer(企业用户关联客户信息)】的数据库操作Service
* @createDate 2024-05-29 11:15:34
*/
public interface WechatFollowCustomerService extends IService<WechatFollowCustomer> {
    //根据用户刷新该用户下的所有企微客户信息
    Map<String, String> refreshWechatCoustomerList(Long userId);
    //根据客户id刷新客户信息
    void refWectCoustomerById(Long userId,Long followCustomer);
    //刷新客户信息
    void refWectCoustomer(WechatFollowCustomer followCustomer, WechatUserSys wechatUserSys);
    //刷新客户流失信息
    void refRunCoustomer(WechatUserSys wechatUserSys,String externalUserid,Integer runType,Long runTime,String source);

    IPage<CustomerWechatInfoVo> customerWechatPageQuery(Page<CustomerWechatInfoVo> page,
                                                        CustomerWechatPageDto command);

    String listWechatCustomerTag(Long wechatCustomerId);
}
